//
// Created by wzr on 2021/5/9.
//

#ifndef UNTITLED1_DATE_H
#define UNTITLED1_DATE_H
#include <iostream>
using std::ostream;
class Date {
private:
    int year;
    int month;
    int day;
public:
    Date() = default;
    Date(int y, int m, int d)
        : year(y), month(m), day(d)
    {}
    inline void setYear(int y) {year = y;}
    inline void setMonth(int m) {month = m;}
    inline void setDay(int d) {day = d;}

    inline int getYear() const {return year;}
    inline int getMonth() const {return month;}
    inline int getDay() const {return day;}
};
inline int year(const Date& t);
inline int month(const Date& t);
inline int day(const Date& t);

ostream&
operator << (ostream& os, const Date& x);

#endif //UNTITLED1_DATE_H
